/*
 * producer.h
 *
 *  Created on: Mar 6, 2013
 *      Author: abrahamsantini
 */

#ifndef PRODUCER_H_
#define PRODUCER_H_
#include "semaphore.h"
#include "sharedMemory.h"
//#include "process.h"

typedef struct {
	unsigned int next_instr;
	sharedMemory_t *sm;
	unsigned int num_of_cycles;

}producer_t;

int init_producer(producer_t *prod, sharedMemory_t *sm);



#endif /* PRODUCER_H_ */
